package co.yixiang.huiMin.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * <p>
 * 机修学堂
 * </p>
 *
 * @author Author
 * @since 2020-07-01
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_apply")
public class UserApply implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 报名的id
     */
    @Id
    @TableId(value = "apply_order_id", type = IdType.NONE)
    @Column(name = "apply_order_id")
    private String applyOrderId;

    /**
     * 报名的名称
     */
    @Column(name = "apply_name")
    private String applyName;

    /**
     * 报名的手机号
     */
    @Column(name = "apply_phone")
    private String applyPhone;

    /**
     * 报名的创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "apply_create_time")
    private LocalDateTime applyCreateTime;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "apply_pay_time")
    private LocalDateTime applyPayTime;

    /**
     * 报名金额
     */
    @Column(name = "apply_money")
    private BigDecimal applyMoney;

    /**
     * 是否已处理(0.未处理1.已处理)
     */

    @Column(name = "apply_dispose")
    private Integer applyDispose;


}
